Addition Operator

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Concatenates two lists together to create a new list. Both lists being concatenated are unchanged. The resulting list contains all the items in first, followed by all the items in second.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static BigList<T> operator +(
	BigList<T> first,
	BigList<T> second
)
Visual Basic (Declaration)
Public Shared Operator + ( _
	first As BigList(Of T), _
	second As BigList(Of T) _
) As BigList(Of T)
Visual C++
public:
static BigList<T>^ operator + (
	BigList<T>^ first, 
	BigList<T>^ second
)

Parameters

first
BigList<(Of <T>)>
The first list to concatenate.
second
BigList<(Of <T>)>
The second list to concatenate.

Remarks

This method takes, on average, constant time, regardless of the size of either list. Although conceptually all of the items in both lists are copied, storage is shared until changes are made to the shared sections.

Exceptions

ExceptionCondition
System..::ArgumentNullExceptionfirst or second is null.

See Also